
<template>
  <!-- 导入 -->
  <div>
    <avue-radio
      :button="true"
      v-model="billType"
      :dic="dic"
      :disabled="true"
    ></avue-radio>
    <EditBankBill v-if="billType === '1'" :target="target" :readonly="readonly" @close="handleClose"/>
    <EditLongCycle v-else :target="target" :readonly="readonly" @close="handleClose"/>
  </div>
</template>

<script>
import { fetchList, getObj, addObj, putObj, delObj } from '@/api/rca/swckbankcashpaymentnote';
import { tableOption } from '@/const/crud/rca/swckbankcashpaymentnote';
import EditBankBill from './EditBankBill.vue';
import EditLongCycle from './EditLongCycle.vue';

export default {
  name: "Edit",
  components: {
    EditBankBill,
    EditLongCycle
  },
  data () {
    return {
      billType: "bankBill",
      dic: [
        {
          label: "银行单据录入",
          value: "1",
        },
        {
          label: "长周期结算",
          value: "2",
        },
      ],
    };
  },
  props: ["dialogImportVisible", "target", "readonly"],
  created(){
    this.billType = this.target.dataType
  },
  methods: {
    handleClose () {
      this.$emit("close");
    },
    handleCancel () {
      this.handleClose();
    },
  },
};
</script>
<style lang="scss">
</style>
